package com.atguigu.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@EnableEurekaClient
public class GateWayMain9527 {
    public static void main(String[] args) {
        //启动EurekaMain7001、PaymentMain8001、PaymentMain8002、GateWayMain9527
        //添加网关前：访问http://localhost:8001/payment/get/1 、http://localhost:8001/payment/lb/
        //添加网关后：访问http://localhost:9527/payment/get/1 、http://localhost:9527/payment/lb/均可得到正确结果，屏蔽了8001端口
        SpringApplication.run(GateWayMain9527.class,args);
    }
}
